package com.zt.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.zt.user.UserInfo;
import lombok.Data;

/**
 * 
 * @TableName financial_transaction
 */
@TableName(value ="financial_transaction")
@Data
public class FinancialTransaction implements Serializable {
    /**
     * 交易id
     */
    @TableId(type = IdType.AUTO)
    private Integer transactionId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 交易类型（0：申购 1：赎回）
     */
    private Integer transactionType;

    /**
     * 交易金额
     */
    private BigDecimal amount;

    /**
     * 交易时间
     */
    private Date transactionDate;
    @TableField(exist = false)
    private UserInfo userInfo;
    @TableField(exist = false)
    private FinancialProduct financialProduct;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}